package com.cu.employmentmanagementsystem.service;

import com.cu.employmentmanagementsystem.entity.StudentRecruitment;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

/**
 * 简历-招聘信息对应表(StudentRecruitment)表服务接口
 *
 * @author zhangyong
 * @since 2024-07-01 15:46:08
 */
public interface StudentRecruitmentService {

    /**
     * 通过ID查询单条数据
     *
     * @param id 主键
     * @return 实例对象
     */
    StudentRecruitment queryById(Long id);

    /**
     * 分页查询
     *
     * @param studentRecruitment 筛选条件
     * @param pageRequest      分页对象
     * @return 查询结果
     */
    Page<StudentRecruitment> queryByPage(StudentRecruitment studentRecruitment, PageRequest pageRequest);

    /**
     * 新增数据
     *
     * @param studentRecruitment 实例对象
     * @return 实例对象
     */
    StudentRecruitment insert(StudentRecruitment studentRecruitment);

    /**
     * 修改数据
     *
     * @param studentRecruitment 实例对象
     * @return 实例对象
     */
    StudentRecruitment update(StudentRecruitment studentRecruitment);

    /**
     * 通过主键删除数据
     *
     * @param id 主键
     * @return 是否成功
     */
    boolean deleteById(Long id);

}
